package com.spica.spicaschool.bean.diary

import androidx.room.Entity
import androidx.room.PrimaryKey
import com.spica.spicaschool.bean.User
import com.squareup.moshi.JsonClass


@Entity
@JsonClass(generateAdapter = true)
data class Diary(
    val buser: String?,
    val diaryAnonymous: Int,
    val diaryBUid: String,
    val diaryCommentNum: Int,
    val diaryContent: String,
    val diaryContentPreview: String,
    @PrimaryKey
    val diaryId: String,
    val diaryImgPreview: String,
    val diaryLable: String,
    val diaryLikeNum: Int,
    val diaryReadNum: Int,
    val diaryReward: Int,
    val diaryStatus: Int,
    val diaryTime: String,
    val diaryTitle: String,
    val diaryType: Int,
    val diaryUid: String,
    val img: List<String>?,
    val isLike: Int,
    val repositity: Int,
    val user: User
)
